def foo():
    print('全局空间的foo函数')
bar = 20
class Bird:
    def foo():
        print('bird中的foo函数')
    bar = 200
foo()
print(bar)
Bird.foo()
print(Bird.bar)